package org.ipmsg.core.event;

import org.ipmsg.core.Address;
import org.ipmsg.core.Message;
import java.util.EventObject;

public class DatagramEvent extends EventObject
{

    private Message message;
    private Address addrress;

    public DatagramEvent(Object source, Message message, Address addrress)
    {
        super(source);
        this.message = message;
        this.addrress = addrress;
    }

    public Message getPack()
    {
        return message;
    }

    public Address getAddress()
    {
        return addrress;
    }
}
